/*  ___ _  ____  __ _  _    ___       _ _          
 * | _ \ |/ /  \/  | \| |  / _ \ _ _ | (_)_ _  ___ 
 * |  _/ ' <| |\/| | .` | | (_) | ' \| | | ' \/ -_)
 * |_| |_|\_\_|  |_|_|\_|  \___/|_||_|_|_|_||_\___|
 */
#ifndef __PKMNONLINE_TEXTURE_H__
#define __PKMNONLINE_TEXTURE_H__
#include <windows.h>
#include <gl/gl.h> /* OpenGL */
#include <il/il.h> /* DevIL Image Library */
#include <string>

using std::string;

class CTexture {
public:
	CTexture(const char *strFileName, GLuint nTex, int nBpp, int nWidth, int nHeight);
	~CTexture();

	int			GetWidth() const	{ return m_nWidth; }
	int			GetHeight() const	{ return m_nHeight; }
	int			GetBPP() const		{ return m_nBpp; }
	const char *GetName() const		{ return m_szName; }

	void Bind() { glBindTexture(GL_TEXTURE_2D, m_nTexture); }

private:
	int	   m_nWidth;
	int	   m_nHeight;
	int	   m_nBpp;
	char   m_szName[256];
	GLuint m_nTexture;
};



#endif /* __PKMNONLINE_TEXTURE_H__ */
